import { createApp } from 'vue'
import './assets/iconfont/iconfont.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './style/index.scss'
import locale from 'element-plus/es/locale/lang/zh-cn'
import { router } from './router'
import comps from './components/index'
import { initApp } from './common/manager/appManager'
import hasPermission from './common/directive'


// init
initApp().then(() => {
    createApp(App)
        .use(router)
        .use(ElementPlus, {
            locale,
            size: 'default'
        })
        .use(hasPermission)
        .use(comps)
        .mount('#app')
})

